package org.example.coupon.controller;

import org.example.coupon.service.CouponService;
import org.example.model.domain.MarketingCoupon;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/coupon")
public class CouponController {
    @Autowired
    private CouponService couponService;
    @RequestMapping("/list")
    public List<MarketingCoupon> selectMarketingCouponList() {
        return couponService.selectMarketingCouponList();
    }
}
